<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<%
	String path = request.getContextPath();
	String webContent = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("webContent", webContent);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8">
        <meta name="author" content="order by dede58.com/" />
		<title>风花雪月</title>
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="keywords" content="">
		<meta name="description" content="">
		<link rel="stylesheet" href="${webContent }foreground/res/layui/css/layui.css">
		<link rel="stylesheet" href="${webContent }foreground/res/css/global.css">
		<script src="${webContent }foreground/res/layui/layui.js"></script>
	</head>
	<body>
		<iframe  src="${webContent }foreground/head.jsp" scrolling="no" width="100%" height="65px" ></iframe>
		<div class="main layui-clear">
			<div class="wrap">
				<div class="content" style="margin-right:0">

					<br></br>
					<ul class="fly-list">
					<c:forEach items="${sessionScope.articles }" var="article">
						<li class="fly-list-li">
							<h2 class="fly-tip">
					            <a href="${webContent }articleDetail/${article.aid}">${article.title }</a>
					        </h2>
					        <span>${article.user.username }</span>
								<span class="fly-list-hint"> 
					              <i class="iconfont" title="评论次数">&#xe60c;</i> 502
					            </span>
						</li>
					</c:forEach>
					</ul>



					<div style="text-align: center">
						<div class="laypage-main"><span class="laypage-curr">1</span>
							<a href="">2</a>
							<a href="">3</a>
							<a href="">4</a>
							<a href="">5</a><span>…</span>
							<a href="" class="laypage-last" title="尾页">尾页</a>
							<a href="" class="laypage-next">下一页</a>
						</div>
					</div>

				</div>
			</div>
		</div>
	</body>

</html>